package com.cn.hotel.dao;

import com.cn.hotel.model.HomeThreeShowModel;
import com.cn.hotel.model.RoomModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IRoomDao {
    int add(RoomModel roomModel);

    List<RoomModel> findAll(RoomModel roomModel);

    int getCount(RoomModel roomModel);

    RoomModel findByRoomId(Integer roomID);

    int delete(Integer temp);

    int edit(RoomModel roomModel);
//前后端分割----------------------------------------------
//    List<RoomModel> getRoomModel();

    /**
     * 网站首页调取
     * @return
     */
    List<RoomModel> getRoomModelList();

    List<RoomModel> getAppointRoomModel(Map<String,Integer> map);

    List<HomeThreeShowModel> getThree();

    List<HomeThreeShowModel> homeFindAll(HomeThreeShowModel model);

    int getNumber(HomeThreeShowModel model);

    List<RoomModel> find(@Param("id") Integer temp);

    int getTotal(Integer temp);

    int homeAdd(HomeThreeShowModel model);

    int homeEdit(HomeThreeShowModel model);

    int homeDelete(Integer temp);

    HomeThreeShowModel homeFindById(Integer aa);
}
